package com.ys.controller.web.mail;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/web/mail")
public class WebMailController {

	/*
	 * 邮件系统首页
	 */
	@GetMapping("/toIndex")
	public String toIndex(Model model, HttpServletRequest request, HttpServletResponse response){
		
		return "mail/index";
	}

	/*
	 * 邮件系统编辑页
	 */
	@GetMapping("/toAdd")
	public String toAdd(Model model, HttpServletRequest request, HttpServletResponse response){
		
		return "mail/toAdd";
	}
}